package cc.grapevine.vps;

public enum Statues
{
	UNKNOW, RUNING, STOPPED, SHUTDOWNING, RESTARTING, INSTALLING;

	public static Statues getStatues(int code)
	{
		Statues statues = UNKNOW;

		switch (code)
		{
		case 0:
			statues = STOPPED;
			break;

		case 1:
			statues = RUNING;
			break;

		case 2:
			statues = INSTALLING;
			break;

		case 3:
			statues = SHUTDOWNING;
			break;

		case 4:
			statues = RESTARTING;
			break;

		default:
			break;
		}
		return statues;
	}

}